#include <iostream>
#include <fstream>

#include "xmltree.h"

int main()
{
    XMLTree *tree=new XMLTree("country");
    tree->add("name","Poland");
    tree->add("coords");
    tree->add("coords21","xsxs");
    XMLTree *coord=new XMLTree("coords");
    coord->add("x","12");
    coord->add("y","14");
    tree->add(*coord);
    cout<< *tree;
    ofstream file;
    file.open("../data/country.xml");
    file << *tree;
    file.close();
    return 0;
}
